package com.turtle.security.organizates.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 系统角色
 *
 * @author turtle
 * date: 2020-05-29
 */
@Data
public class SysRoleDTO {

    @ApiModelProperty(value = "角色ID")
    private Long roleId;

    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "角色名称不能为空")
    private String roleName;

    @ApiModelProperty(value = "角色权限字符串")
    @NotBlank(message = "角色权限字符串不能为空")
    private String roleKey;

    @ApiModelProperty(value = "显示顺序")
    private Integer roleSort;

    @ApiModelProperty(value = "数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）")
    private String dataScope;

    @ApiModelProperty(value = "角色状态（0正常 1停用）")
    @NotBlank(message = "角色状态不能为空")
    private String status;

    @ApiModelProperty(value = "客户ID")
    @JsonIgnore
    private Integer customerId;

    @ApiModelProperty(value = "备注")
    private String remark;
}
